<?php
/**
 * Analyse Frame Entry
 * @author	zhangjian<smile_for_life@sina.cn>
 * @date	2014-01-14
 */
error_reporting(0);
error_reporting(E_ALL ^ E_NOTICE);
ignore_user_abort(true);
date_default_timezone_set('Asia/Shanghai');
set_time_limit(0);
@ini_set('memory_limit', '120M');

define('ROOT_PATH', realpath(dirname(__FILE__)));
define('LOG_PATH',ROOT_PATH . '/www_logs');

require ROOT_PATH . '/Autoloader.php';
$config = require ROOT_PATH . '/Config.php';
$env = 'Env_Name';
$mode = 'Development';

try{
	Analyse::run($config[$env][$mode]);
}catch(Exception $e){
	Error::handle($e);
}